<h1>Liste des types d'incidents</h1>

<fieldset>
	<legend> Types incidents </legend>

	<table class="main_table_type_incident">
		<tr>
			<td class="10p"></td>
			<td class="20p"></td>
			<td class="20p"></td>
			<td colspan="2"><%= link_to 'Ajouter un type d\'incident', new_type_incident_path %></td>
		</tr>
		<tr>
			<th colspan="2">Designation</th>
		</tr>

		<% @type_incidents.each do |type_incident| %>
			<tr>
				<td class="warning box_machine_incident"></td>
				<td class="designation_incident"><%=h type_incident.designation %></td>
				<td><%= link_to 'Afficher', type_incident %></td>
				<td><%= link_to 'Modifier', edit_type_incident_path(type_incident) %></td>
				<td><%= link_to 'Supprimer', type_incident, :confirm => 'Are you sure?', :method => :delete %></td>
			</tr>
		<% end %>
		
		
	</table>
</fieldset>


